﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using BLL;
using DLL;

namespace CuaHangBangDia
{
    public partial class Form_TaiKhoan_TimKiem : DevComponents.DotNetBar.RibbonForm
    {
        public Form_TaiKhoan_TimKiem()
        {
            InitializeComponent();
        }

        TaiKhoanManager manager = new TaiKhoanManager();
        public List<TAI_KHOAN> TaiKhoan { get; set; }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnTimKiem_Click(object sender, EventArgs e)
        {
            if(manager.TimMK(txtTaiKhoan.Text).Count > 0)
            {
                TaiKhoan = manager.TimMK(txtTaiKhoan.Text);
                this.Close();
            }
            else
                MessageBox.Show("Không tìm thấy thông tin tài khoản");

        }
    }
}
